+2002-04-27 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_display):
+ Use GDK_DISPLAY_XDISPLAY instead of GDK_SCREEN_XDISPLAY since
+ we pass in a GdkDisplay * in the macro.
+
+2002-04-26 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/gdkdisplay.c: (gdk_set_default_display):
+ Call _gdk_windowing_set_default_display.
+
+ * gdk/gdkinternals.h:
+ * gdk/x11/gdkmain-x11.c: (_gdk_windowing_set_default_display):
+ New function that sets gdk_display to the default display.
+ Fixes #79965
+
Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+2002-04-27 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_display):
+ Use GDK_DISPLAY_XDISPLAY instead of GDK_SCREEN_XDISPLAY since
+ we pass in a GdkDisplay * in the macro.
+
+2002-04-26 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/gdkdisplay.c: (gdk_set_default_display):
+ Call _gdk_windowing_set_default_display.
+
+ * gdk/gdkinternals.h:
+ * gdk/x11/gdkmain-x11.c: (_gdk_windowing_set_default_display):
+ New function that sets gdk_display to the default display.
+ Fixes #79965
+
Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+2002-04-27 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_display):
+ Use GDK_DISPLAY_XDISPLAY instead of GDK_SCREEN_XDISPLAY since
+ we pass in a GdkDisplay * in the macro.
+
+2002-04-26 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/gdkdisplay.c: (gdk_set_default_display):
+ Call _gdk_windowing_set_default_display.
+
+ * gdk/gdkinternals.h:
+ * gdk/x11/gdkmain-x11.c: (_gdk_windowing_set_default_display):
+ New function that sets gdk_display to the default display.
+ Fixes #79965
+
Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+2002-04-27 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_display):
+ Use GDK_DISPLAY_XDISPLAY instead of GDK_SCREEN_XDISPLAY since
+ we pass in a GdkDisplay * in the macro.
+
+2002-04-26 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/gdkdisplay.c: (gdk_set_default_display):
+ Call _gdk_windowing_set_default_display.
+
+ * gdk/gdkinternals.h:
+ * gdk/x11/gdkmain-x11.c: (_gdk_windowing_set_default_display):
+ New function that sets gdk_display to the default display.
+ Fixes #79965
+
Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+2002-04-27 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_display):
+ Use GDK_DISPLAY_XDISPLAY instead of GDK_SCREEN_XDISPLAY since
+ we pass in a GdkDisplay * in the macro.
+
+2002-04-26 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/gdkdisplay.c: (gdk_set_default_display):
+ Call _gdk_windowing_set_default_display.
+
+ * gdk/gdkinternals.h:
+ * gdk/x11/gdkmain-x11.c: (_gdk_windowing_set_default_display):
+ New function that sets gdk_display to the default display.
+ Fixes #79965
+
Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
+2002-04-27 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/x11/gdkpixmap-x11.c (gdk_pixmap_foreign_new_for_display):
+ Use GDK_DISPLAY_XDISPLAY instead of GDK_SCREEN_XDISPLAY since
+ we pass in a GdkDisplay * in the macro.
+
+2002-04-26 Anders Carlsson <andersca@gnu.org>
+
+ * gdk/gdkdisplay.c: (gdk_set_default_display):
+ Call _gdk_windowing_set_default_display.
+
+ * gdk/gdkinternals.h:
+ * gdk/x11/gdkmain-x11.c: (_gdk_windowing_set_default_display):
+ New function that sets gdk_display to the default display.
+ Fixes #79965
+
Fri Apr 26 21:58:16 2002 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodel.c (gtk_tree_row_ref_deleted_callback): if the
gdk_set_default_display (GdkDisplay *display)
{
default_display = display;
+
+ _gdk_windowing_set_default_display (display);
}
/**
extern GdkArgDesc _gdk_windowing_args[];
void _gdk_windowing_init (void);
+void _gdk_windowing_set_default_display (GdkDisplay *display);
void _gdk_windowing_window_get_offsets (GdkWindow *window,
gint *x_offset,
_gdk_selection_property = gdk_atom_intern ("GDK_SELECTION", FALSE);
}
+void
+_gdk_windowing_set_default_display (GdkDisplay *display)
+{
+ gdk_display = GDK_DISPLAY_XDISPLAY (display);
+}
+
void
gdk_set_use_xshm (gboolean use_xshm)
{
/* get information about the Pixmap to fill in the structure for
the gdk window */
- if (!XGetGeometry (GDK_SCREEN_XDISPLAY (display),
+ if (!XGetGeometry (GDK_DISPLAY_XDISPLAY (display),
xpixmap, &root_return,
&x_ret, &y_ret, &w_ret, &h_ret, &bw_ret, &depth_ret))
return NULL;